home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / usr / lib / ubiquity / target-config / 31brltty < prev    next >
Text File  |  2009-10-13  |  488b  |  17 lines

  1. #! /bin/sh
  2. set -e
  3.  
  4. [ ! -f /etc/default/brltty ] || . /etc/default/brltty
  5.  
  6. if egrep -q 'braille=ask|brltty' /proc/cmdline && [ -f /etc/brltty.conf ] && \
  7.    [ -e /target/etc/default/brltty ] && [ "$RUN_BRLTTY" = yes ]; then
  8.     mkdir -p /target/etc/default
  9.     if [ -e /target/etc/brltty.conf ]; then
  10.         mv /target/etc/brltty.conf /target/etc/brltty.conf.orig
  11.     fi
  12.     cp -a /etc/brltty.conf /target/etc/brltty.conf
  13.     sed -i -e 's/^RUN_BRLTTY=.*/RUN_BRLTTY=yes/' /target/etc/default/brltty
  14. fi
  15.  
  16. exit 0
  17.